body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.list {
  width: 60%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.item {
  flex: 1;
  height: 50px;
  margin: 0 5px 5px 0;
  background-color: #999;
  width: calc((100% - 20px) / 4);
  min-width: calc((100% - 20px) / 4);
  max-width: calc((100% - 20px) / 4);
  view-transition-name: var(--i);
}

.item:nth-child(4n) {
  margin-right: 0;
}

.dark {
  background-color: #000;
}
